import { Entity, Column, PrimaryGeneratedColumn, UpdateDateColumn, ManyToOne, JoinColumn } from 'typeorm';
import { ApiProperty} from '@nestjs/swagger';
import { Attribute } from './attribute.entity';
import { Specification } from './specification.entity';
import { IsOptional } from 'class-validator';

@Entity()
export class GoodsIssue {
  @PrimaryGeneratedColumn()
  id: number;

  @IsOptional()
  @ApiProperty()
  @Column({type: 'varchar', length: 500})
  question: string;

  @IsOptional()
  @ApiProperty()
  @Column({type: 'varchar', length: 100})
  answer: string;

}
